CLOSE
Section: MINTLIB LIBRARY FUNCTIONS
(3)
Updated: 3 March 1993
Index
Return to Main Contents
NAME
close - close a file descriptor
SYNOPSIS
#include <unistd.h>
int close(int fildes);
DESCRIPTION
fildes is a file descriptor obtained from a creat, open, dup,
fcntl or pipe system call. close closes the file descriptor
indicated by fildes. All outstanding record locks owned by the
process on the file indicated by fildes are closed.
RETURN VALUES
0 on success
-1 on failure; errno is set to indicate the error.
SEE ALSO
creat(3),
dup(3),
fcntl(3),
open(3),
pipe(3),
Fclose(2)
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURN VALUES
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 11:14:57 GMT, June 22, 2025